﻿@model XSTDZ.ERP.Application.DataContracts.PermissionDto

@{
    ViewBag.Title = " - 更新页面元素";
}
@section header{
     <link href="@Url.Content("~/Content/Controls.css")" rel="stylesheet" type="text/css" />
         <style type="text/css">
          div.wp100{width:99%;}
          
          table.formtable   
          {
              width:100%;
            border: 1px solid #B1CDE3;  
            padding:0;   
            margin:0 auto;  
            border-collapse: collapse;  
        }  
          
        table.formtable td {  
            border: 1px solid #B1CDE3;  
            background: #fff;  
            font-size:12px;  
            padding: 3px 3px 3px 8px;  
            color: #4f6b72;  
        }  
        table.formtable td.title{width:100px; text-align:right;}
     
    </style>
}
<h2>添加页面元素</h2>
<div class="pdall">
@*@{Html.RenderAction("PermissionInfo", "Permission", new { permissionId = @ViewBag.PermissionID });}*@
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
           @Html.HiddenFor(model => model.Id);
      <table class="formtable">
    <thead>
        <tr>
            <th colspan="4">@* <h2>新增入库单</h2>*@
            <div id="toptoolbar"></div>
            </th>
        </tr>
    </thead>
        <tr>
       
        <td class="title">  @Html.LabelFor(model => model.Name) </td>
        <td>  @Html.TextBoxFor(model => model.Name, new { @class = "text", @readonly = "readonly" })
        @Html.HiddenFor(model => model.ParentId)
        </td>
        <td class="title">  @Html.LabelFor(model => model.Code) </td>
        <td>  @Html.TextBoxFor(model => model.Code, new { @class = "text", @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.Code)
        </td>
  </tr>
   <tr>
       
        <td class="title">  @Html.LabelFor(model => model.Controller) </td>
        <td>   @Html.TextBoxFor(model => model.Controller, new { @class = "text", @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.Controller)
        </td>

        <td class="title">@Html.LabelFor(model => model.Action)</td>
        <td>  @Html.TextBoxFor(model => model.Action, new { @class = "text" })
            @Html.ValidationMessageFor(model => model.Action)
         </td>
  </tr>
  <tr>
       
        <td class="title"> 
        @Html.HiddenFor(model => model.UiPermission.Id) 
         @Html.HiddenFor(model => model.UiPermission.PermissionID) 
            @Html.LabelFor(model => model.UiPermission.ClientId) </td>
        <td>  @Html.TextBoxFor(model => model.UiPermission.ClientId, new { @class = "text" })
            @Html.ValidationMessageFor(model => model.UiPermission.ClientId)
        </td>

        <td class="title">元素名称 @*@Html.LabelFor(model => model.UiPermission.ImagePath)*@</td>
        <td> @Html.TextBoxFor(model => model.UiPermission.ImagePath, new { @class = "text" })
            @Html.ValidationMessageFor(model => model.UiPermission.ImagePath)
         </td>
  </tr>
  <tr>
       
        <td class="title">  @Html.LabelFor(model => model.UiPermission.IsMenu) </td>
        <td>  @Html.CheckBoxFor(model => model.UiPermission.IsMenu)
            @Html.ValidationMessageFor(model => model.UiPermission.IsMenu)
        </td>

        <td class="title"> </td>
        <td> 
         </td>
  </tr>
      
   <tr>
        <td  colspan="4">
              <p class="divBtn">
            
            <input type="hidden" id="hidHttpPostState" name="hidHttpPostState" value="@ViewBag.PostState" />
            <input type="submit" value="更新页面元素"  class="BtnSubmit" />
            <input type="button" value="@XSTDZ.ERP.Infrastructure.SystemConfig.BtnClose" id="btnFromClose" name="btnFromClose" class="BtnClose" />
         </p>
        </td>
    </tr>
    </table>
}
</div>
<script type="text/javascript" src="@Url.Content("~/Content/js/formBase.js")"></script>